package Other;




import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import database.DBInterface;
import database.DatabaseExtension;
import database.DatabaseMySQL;
import database.MyCountry;
import database.NewTirDataBase;
import GUI.Country;
import GUI.Menu;
import GUI.Payment;
import GUI.Report;
import GUI.ScrollShit;
import GUI.Supplier;
import GUI.Tax;


public class Main {

	public static void main(String args[]) {

		DBInterface database = new DatabaseMySQL();
		database.initialise("root", "", "localhost/newtir");
		database.connect();
		DatabaseExtension.setDatabase(database);
		
		//NewTirDataBase country = null;
		//NewTirDataBase payment = null;
		
		//Country.getInstance();
		//Payment.getInstance();
		//Country.getInstance();
		
		
	//Payment.getInstance();
	        
	   Menu.getInstance().setVisible(true);
		
		//new ScrollShit().setVisible(true);
		
	//System.out.println("this is the number of rows "+  DatabaseExtension.getRows("select * from good where shipmentID = '20'"));
	   System.out.println("this is the lat id  "+  DatabaseExtension.getRows("select code from good where shipmentID = '20'"));
	 
	
	}

}

